.nut-theme-dark {
  .nut-collapse-item {
    .nut-collapse-item__title {
      background: $dark-background;
      color: $dark-color;
      box-shadow: none;
    }
    .nut-collapse__item-wrapper {
      .collapse-content,
      .nut-collapse__item-extraWrapper__extraRender {
        background: $dark-background;
        color: $dark-color;
      }
    }
    .nut-collapse__item-extraWrapper {
      .nut-collapse__item-extraWrapper__extraRender {
        background: $dark-background;
      }
    }
  }
}
.nut-collapse-item__border {
  .nut-collapse-item__title {
    &::after {
      position: absolute;
      box-sizing: border-box;
      content: ' ';
      pointer-events: none;
      right: 16px;
      bottom: 0;
      left: 16px;
      border-bottom: 1px solid #ebedf0;
      -webkit-transform: scaleY(0.5);
      transform: scaleY(0.5);
    }
  }
}
.nut-collapse-item {
  position: relative;
  .nut-collapse-item__title {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    overflow: hidden;
    padding: $collapse-item-padding;
    color: $collapse-item-color;
    font-size: $collapse-item-font-size;
    line-height: $collapse-item-line-height;
    background-color: #fff;
    box-sizing: border-box;
    .nut-collapse-item__title-main {
      flex: 1;
    }
    .nut-collapse-item__title-main-value {
      display: block;
      .nut-collapse-item__title-main-icon {
        top: 2px;
      }
    }
    .nut-collapse-item__title-icon {
      // display: block;
      // position: absolute;
      // top: 50%;
      // right: 16px;
      display: flex;
      align-items: center;
      color: $collapse-item-icon-color;
      transition: transform 0.3s;
      &--expanded {
        transform: rotate(-180deg);
      }
    }
    .nut-collapse-item__title-sub {
      position: absolute;
      top: 50%;
      right: 65px;
      margin-top: -12px;
      color: $collapse-item-sub-title-color;
    }
    .nut-collapse-item__title-label {
      display: block;
      color: #969799;
      font-size: 12px;
    }
  }
  .nut-collapse__item-wrapper,
  .nut-collapse__item-extraWrapper {
    display: block;
    position: relative;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease-in-out;
    .nut-collapse__item-wrapper__content,
    .nut-collapse__item-extraWrapper__extraRender {
      display: block;
      padding: $collapse-wrapper-content-padding;
      color: $collapse-wrapper-content-color;
      font-size: $collapse-wrapper-content-font-size;
      line-height: $collapse-wrapper-content-line-height;
      background-color: $collapse-wrapper-content-background-color;
    }
    .nut-collapse__item-wrapper__content--empty {
      padding: $collapse-wrapper-empty-content-padding;
    }
  }
  .nut-collapse__item-extraWrapper {
    height: auto;
    .nut-collapse__item-extraWrapper__extraRender {
      word-wrap: break-word;
      word-break: break-all;
      overflow: hidden;
    }
  }
  .open-style {
    will-change: height;
    height: auto;
  }
  .close-style {
    will-change: auto;
  }
  .nut-collapse-item__title--disabled {
    color: $collapse-item-disabled-color;
    cursor: not-allowed;
    pointer-events: none;
    .collapse-icon {
      color: $collapse-item-disabled-color;
    }
  }
  .nut-collapse-item__title-mtitle {
    display: inline-block;
  }
}
.collapse-border-none {
  .nut-collapse-item__title {
    &::after {
      display: none;
    }
  }
}
